package com.wcy.scl.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.wcy.scl.service.ComputeService;

@RestController
public class ComputeController {

	@Autowired
	private ComputeService computeService;

	@RequestMapping(value="add", method=RequestMethod.GET)
	public int add(Integer x, Integer y) {
		return computeService.add(x, y);
	}
}
